package com.mine.test.model;

import graphql.annotations.GraphQLField;
import graphql.annotations.GraphQLType;
import org.springframework.stereotype.Repository;

import java.io.Serializable;

/**
 * Project Name is testql.
 * User: wwq
 * Date: 2017/6/2
 * Time: 上午10:01
 */
@Repository
@GraphQLType
public class Product implements Serializable {

    @GraphQLField
    private  Long id;
    @GraphQLField
    private  String ProductName;
    @GraphQLField
    private double price;

    public Long getId() {
        return id;
    }


    public void setId(Long id) {
        this.id = id;
    }

    public String getProductName() {
        return ProductName;
    }

    public void setProductName(String productName) {
        ProductName = productName;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
